/*******************************************************************************
SceneKit.h

	Author:		LiuDingXi
	e-mail:		liudx@gmail.com
	Date time:	2009-08-07

	Copyright (C) 2009
	All rights reserved.
	
*******************************************************************************/

#ifndef _SCENEKIT_H_
#define _SCENEKIT_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BaseParser.h"
#include "SightKit.h"
#include "Coder.h"

class CSceneKit : public CBaseParser
{
public:
	CSceneKit();
	virtual ~CSceneKit();

public:
	BOOL	Load(LPCTSTR szFolder, LPCTSTR szScene);

	BOOL	Load(CArchive& ar);
	BOOL	Store(CArchive& ar);

	BOOL	Free();

	BOOL	LoadSight(LPCTSTR szSightFile, SINT nLoadDelay = 0);

	BOOL	SaveDat(LPCTSTR szFileName);

	BOOL	Build(LPCTSTR szOutput);

protected:
	struct SIGHT : public CSightKit
	{
		CString	szFile;
		SINT	nLoadDelay;
	};

	list<SIGHT*>	m_SightList;

	CString	m_szFolder;

public:
	CString	m_szName;

};


#endif//_SCENEKIT_H_
